@{
    Layout = null;
    var permission = (ViewBag.Permission as TagPermission) ?? new TagPermission();
}
<!DOCTYPE html>
<html>
<head>
    <title>标签管理</title>
    <link href="~/css/tag.css" rel="stylesheet" />
    <link href="https://cdn.staticfile.org/layui/2.9.7/css/layui.css" rel="stylesheet" />
</head>
<body class="layui-layout-body">
    <div class="layui-layout layui-layout-admin">
        <!-- 添加顶部导航栏 -->
        <div class="layui-header">
            <div class="layui-logo">标签管理系统</div>
        </div>

        <!-- 左侧导航栏 -->
        <div class="layui-side layui-bg-black">
            <div class="layui-side-scroll">
                <ul class="layui-nav layui-nav-tree">
                    <li class="layui-nav-item layui-this">
                        <a href="javascript:;">标签管理</a>
                    </li>
                </ul>
            </div>
        </div>
        
        <!-- 主体内容区域 -->
        <div class="layui-body" style="padding: 15px;">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-header">
                            标签管理 @(permission.IsAdmin ? "(管理员)" : "")
                        </div>
                        <div class="layui-card-body">
                            <div class="tag-list" id="tagList" 
                                 data-can-edit="@permission.CanEdit.ToString().ToLower()"
                                 data-is-admin="@permission.IsAdmin.ToString().ToLower()">
                                 <div class="layui-anim layui-anim-rotate layui-anim-loop">
                                     <i class="layui-icon layui-icon-loading" style="font-size: 30px;"></i>
                                 </div>
                             </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="https://cdn.staticfile.org/layui/2.9.7/layui.js"></script>
    <script src="~/js/tag.js"></script>
    <script>
        layui.use(['element'], function(){
            var element = layui.element;
        });
    </script>
</body>
</html>